<?php

namespace App\Models;


use App\Service\Base\Model;

class SiteSms extends Model
{

    // 用户管理
    protected $table = 'site_sms';

    // 缓存字段，用于搜索绑定的字段
    protected $cacheFields = ['id', 'email'];
    const UPDATED_AT = null;

    // 定义验证操作
    public function rules()
    {

        $add = [
        ];

        $edit = [
        ];

        $info = [
        ];


        $rule = [
            'email' => 'required',
            'code'  => 'required',
            //'status'  => ['in:0,1,2'],
        ];


        $msg = [
            'id'     => '编号',
            'email'  => '手机号',
            'code'   => '短信验证码',
            'status' => '状态 1-已经使用',
            'ip'     => 'ip',
            'ctime'  => '创建时间',
        ];

        return ['rule' => $rule, 'msg' => $msg, 'add' => $add];
    }
}
